//
//  SettingVC.m
//  初中语文八年级上
//
//  Created by Steven on 2019/7/4.
//  Copyright © 2019 Steven. All rights reserved.
//

#import "SettingVC.h"
#import <StoreKit/StoreKit.h>
@interface SettingVC ()

@end

@implementation SettingVC

- (void)viewDidLoad {
    [super viewDidLoad];
    self.tableView.tableFooterView = [UIView new];
}



- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath{
    
  if (indexPath.section == 0 && indexPath.row == 1){
        if ([[UIDevice currentDevice].systemVersion floatValue] >= 10.3) {
            [SKStoreReviewController requestReview];
        } else {
            NSURL *url  = [NSURL URLWithString:@"https://itunes.apple.com/cn/app/inotes/id1474329329?l=zh&ls=1&mt=8&action=write-review"];
            [[UIApplication sharedApplication] openURL:url];
        }
    }
    
}

@end
